import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "@/assets/icon/iconfont.css"
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
import * as filters from '@/filters'
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key])
})

// register common components globally
import '@/components/common'
import '@/styles/index.scss'
import regularExpression from "./assets/js/regularExpression";
import qiniuSet from '@/utils/qiniuSet.js'

Vue.config.productionTip = false

Vue.prototype.QINIU = qiniuSet[process.env.NODE_ENV].qiniuSet
Vue.prototype.RX = regularExpression;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
